import {
	Server
} from '@/utils/Server/index.js'

//3.1.7忘记密码-重置密码
export const resetpassword = (data) => {
	return Server({
		url: '/mini-app/v1/miniapp/myinfo/reset-password',
		method: 'post',
		data
	})
}
//3.1.5修改个人信息手机号
export const phone = (data) => {
	return Server({
		url: '/miniapp/v1/miniapp/myinfo/phone',
		method: 'put',
		data
	})
}
//3.1.4修改个人信息用户名
export const name = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/nickname',
		method: 'put',
		data
	})
}
// 4.1.3.3 设置支付密码
export const forgotpassword = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/paypassword',
		method: 'post',
		data
	})
}
//4.1.3.6 修改支付密码
export const paypass=(data)=> {
	return Server({	
		url: '/miniapp/member/v2/member/paypassword',
		method: 'put',
		data
	})
}
// 3.1.1 获取个人信息
export const info = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/user',
		method: 'get',
		data
	})
}
// 3.1.2修改个人信息头像
export const image = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/image',
		method: 'put',
		data
	})
}
//4.1.1.2 发送验证码(忘记支付密码)
export const getCode = (data) => {
	return Server({
		url: '/miniapp/member/v2/msm/send2',
		method: 'post',
		data
	})
}
// // 解绑手机号
export const untiephone = (data) => {
	return Server({
		url: '/miniapp/v1/miniapp/myinfo/untiephone',
		method: 'put',
		data
	})
}

//4.2.1.1反馈与帮助
export const suggestion = (data) => {
	return Server({
		url: '/miniapp/system/v2/feedback/feedback',
		method: 'post',
		data
	})
}
// 
export const questionlist = (data) => {
	return Server({
		url: '/miniapp/system/v2/question/list',
		method: 'get',
		data
	})
}

// 4.1.4.1 收获地址列表
export const addreses = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/addreses',
		method: 'get',
		data
	})
}
// 4.1.4.2 新增收货地址
export const newAddress = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/address',
		method: 'post',
		data
	})
}
// 4.1.4.5 修改地址信息
export const editaddress = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/address',
		method: 'put',
		data
	})
}
// // 3.3.5地址信息详情
export const addressDiteils = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/address',
		method: 'get',
		data
	})
}
//3.3.4删除地址信息
export const addressdel = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/address',
		method: 'delete',
		data
	})
}
//忘记修改支付密码  
export const forgetpassword = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/forget-password',
		method: 'put',
		data
	})
}